/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Opcoes;

/**
    *
    *
    *@param Não recebe parâmetros, é utilizada para definir o tamanho dos headers e payloads
    *
    *
    **/

    public class Pacotes {
    
    // Tamanhos em bytes.
    public static int HEADER_SIZE = 23;
    public static int HEADER_ID_SIZE = 16;
    public static int HEADER_PAYLOAD_DESCRIPTOR_SIZE = 1;
    public static int HEADER_TTL_SIZE = 1;
    public static int HEADER_HOPS_SIZE = 1;
    public static int HEADER_PAYLOAD_LENGHT_SIZE = 4;
    
    public static int IP_ADDR_SIZE = 12;
    
    public static int PAYLOAD_OF_PING = 0;
    public static int PAYLOAD_OF_PONG = 1;
    public static int PAYLOAD_OF_QUERY = 80;
    public static int PAYLOAD_OF_QUERY_HIT = 81;
    public static int PAYLOAD_OF_PUSH = 40;
    
    
    
    
    
}
